
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    display: flex;
}

/* 侧边栏样式 */
    .admin-sidebar {
        width: 250px;
        background: #001529;
        color: #fff;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
    }
    
    .admin-sidebar .admin-header {
        padding: 20px;
    }
    
    .logo-container {
        text-align: center;
    }
    
    .logo {
        width: 120px;
        height: auto;
    }
    
    /* 菜单样式 */
    .admin-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .admin-menu li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #fff;
    }
    
    .admin-menu li i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    .badge {
        background: #ff4d4f;
        color: #fff;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 12px;
        margin-left: auto;
    }
    .admin-menu {
        list-style: none;
    }
    .admin-menu a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        color:#fff;
        text-decoration: none;
    }
    
    .admin-menu a i {
        margin-right: 14px;
        font-size: 16px;
        width: 16px;
        text-align: center;
    }
    
    .admin-menu li.active a {
        color: #fff;
        background: #1890ff;
    }
    
    .admin-menu a:hover {
        color: #fff;
        background: rgba(24,144,255,0.1);
    }
    
    .badge {
        background: #ff4d4f;
        color: #fff;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 12px;
        margin-left: auto;
    }

/* 主内容区域样式 */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 24px;
    background-color: #f4f6f9;
}

/* 顶部导航样式 */
.admin-main > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 16px 24px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb span {
    color: #666;
    font-size: 14px;
}

.breadcrumb i {
    color: #999;
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 15px;
}

.admin-search input {
    width: 600px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-search input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
    outline: none;
}

.Search {
    padding: 8px 14px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.Search:hover {
    background: #40a9ff;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    padding-left: 380px;
    transition: all 0.3s;
}

.admin-user:hover {
    background: #f5f5f5;
}

.admin-user span {
    color: #666;
    font-size: 14px;
}

.admin-user i {
    color: #999;
    font-size: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* 内容主体样式 */
.content-wrapper {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
    padding: 24px;
}

/* 分类列表区域样式 */
.category-list-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

/* 工具栏样式 */
.toolbar {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 16px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    min-width: 120px;
    color: #666;
}

.action-group {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

/* 表格样式 */

.category-table {
    width: 100%;
    border-collapse: collapse;
}

.category-table th,
.category-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.category-table th {
    background: #fafafa;
    font-weight: 500;
    color: #666;
}

.category-table tbody tr:hover {
    background: #fafafa;
}

/* 状态标签样式 */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.status-active {
    background: #e6f7ff;
    color: #1890ff;
}

.status-inactive {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 操作按钮样式 */
.btn-action {
    padding: 4px 8px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
}

.btn-action.edit {
    background: #e6f7ff;
    color: #1890ff;
}

.btn-action.delete {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 分页样式 */
.pagination {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.page-controls {
    display: flex;
    gap: 8px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.page-btn:hover:not(.active) {
    border-color: #1890ff;
    color: #1890ff;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 100px auto;
    padding: 24px;
    width: 520px;
    height: 550px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 95%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #d9d9d9;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .data-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 70px;
    }
    
    .admin-sidebar .logo {
        width: 40px;
    }
    
    .admin-sidebar span {
        display: none;
    }
    
    .data-overview {
        grid-template-columns: 1fr;
    }

    .modal {
        display: none; /* 默认隐藏 */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
    }
    
    .modal.show {
        display: flex; /* 显示弹窗 */
    }
    
    .modal-content {
        background-color: white;
        padding: 20px;
        border-radius: 5px;
    }
    
} 